
from django.contrib import admin
from django.urls import path, re_path,include
from django.views.static import serve
from django.conf import settings
#自动生成路由

urlpatterns = [
    path('admin/', admin.site.urls),
    path('user/', include('user.urls')),
    path('home/', include('home.urls')),
    path('course/', include('course.urls')),
    path('order/', include('order.urls')),
    re_path('^media/(?P<path>.*)', serve, {'document_root': settings.MEDIA_ROOT})
]


